package top.shen33.yang.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author oreilly
 * @since 2018-08-15
 */
public class MmallUser extends Model<MmallUser> {

private static final long serialVersionUID = 1L;

    /**
     * 用户表id
     */
                    @TableId(value = "id", type = IdType.AUTO)
                private Integer id;
    /**
     * 用户名
     */
        private String username;
    /**
     * 用户密码，MD5加密
     */
        private String password;
        private String email;
        private String phone;
    /**
     * 找回密码问题
     */
        private String question;
    /**
     * 找回密码答案
     */
        private String answer;
    /**
     * 角色0-管理员,1-普通用户
     */
        private Integer role;
        private String wechatOpenid;
    /**
     * 创建时间
     */
        private Date createTime;
    /**
     * 最后一次更新时间
     */
        private Date updateTime;


    public Integer getId() {
            return id;
            }

        public void setId(Integer id) {
            this.id = id;
            }

    public String getUsername() {
            return username;
            }

        public void setUsername(String username) {
            this.username = username;
            }

    public String getPassword() {
            return password;
            }

        public void setPassword(String password) {
            this.password = password;
            }

    public String getEmail() {
            return email;
            }

        public void setEmail(String email) {
            this.email = email;
            }

    public String getPhone() {
            return phone;
            }

        public void setPhone(String phone) {
            this.phone = phone;
            }

    public String getQuestion() {
            return question;
            }

        public void setQuestion(String question) {
            this.question = question;
            }

    public String getAnswer() {
            return answer;
            }

        public void setAnswer(String answer) {
            this.answer = answer;
            }

    public Integer getRole() {
            return role;
            }

        public void setRole(Integer role) {
            this.role = role;
            }

    public String getWechatOpenid() {
            return wechatOpenid;
            }

        public void setWechatOpenid(String wechatOpenid) {
            this.wechatOpenid = wechatOpenid;
            }

    public Date getCreateTime() {
            return createTime;
            }

        public void setCreateTime(Date createTime) {
            this.createTime = createTime;
            }

    public Date getUpdateTime() {
            return updateTime;
            }

        public void setUpdateTime(Date updateTime) {
            this.updateTime = updateTime;
            }

@Override
protected Serializable pkVal() {
            return this.id;
        }

@Override
public String toString() {
        return "MmallUser{" +
                ", id=" + id +
                ", username=" + username +
                ", password=" + password +
                ", email=" + email +
                ", phone=" + phone +
                ", question=" + question +
                ", answer=" + answer +
                ", role=" + role +
                ", wechatOpenid=" + wechatOpenid +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
        "}";
        }
        }
